package org.csmzxy.class2333;
import java.util.Scanner;
public class watergodflower {
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入一个三位数：");
        int num = scanner.nextInt();
        if(num<100||num>999){
            System.out.println("输入的数不是三位数，请重新输入。");
            return;
        }
        int digit1 = num/100;
        int digit2 = (num/10)%10;
        int digit3 = num%10;
        if (digit1*digit1*digit1+digit2*digit2*digit2+digit3*digit3*digit3==num){
            System.out.println(num+"是水仙花数");
        }
        else {
            System.out.println(num+"不是水仙花数");
        }
    }
}